import { createRouter, createWebHashHistory } from "vue-router";


export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "/",
            redirect: "/Login"
        },
        {
            path: "/Login",
            component: () => import("../views/Login.vue")
        },
        {
            path: "/Admin",
            component: () => import("../views/Admin/Index.vue"),
            children: [
                {
                    path: "List",
                    component: () => import("../views/Admin/Banner/List.vue")
                },
                {
                    path: "Add",
                    component: () => import("../views/Admin/Banner/Add.vue")
                },
                {
                    path: "AdminList",
                    component: () => import("../views/Admin/Admin/List.vue")
                },
                {
                    path: "AdminAdd",
                    component: () => import("../views/Admin/Admin/Add.vue")
                },
                {
                    path: "QueryList",
                    component: () => import("../views/Admin/goods/QueryList.vue")
                },
                {
                    path: "ListWithPage",
                    component: () => import("../views/Admin/goods/ListWithPage.vue")
                }
            ]
        }
    ]
});